package com.example.demo.thread;

/**
 * @Description:
 * @Author: LLL
 * @Date: 2020-03-11 23:58
 **/
public class Thread4 {
    public static void main(String[] args) {
        new Thread4().go();
    }

    public void go() {
        Runnable r = new Runnable() {

            @Override public void run() {
                System.out.println("foo");
            }
        };
        Thread t = new Thread(r);
        t.start();
    }
}
